/**
 * 本地存储的简单封装 目前先用着
 */
const skStorage = {
	set(key: string, value: any) {
		window.localStorage.setItem(key, JSON.stringify(value))
	},
	get(key: string) {
		const data = window.localStorage.getItem(key)
		if (data) return JSON.parse(data)
	},
	remove(key: string) {
		window.localStorage.removeItem(key)
	},
	clear() {
		window.localStorage.clear()
	},
}

export default skStorage
